import java.util.Arrays;

public class TestDemo {
    public static void main(String[] args) {

    }
    public static void main5(String[] args) {
        String str1=null;
        String str2="11";
        System.out.println(str2.equals(str1));
    }
    public static void main4(String[] args) {
        String str1="11";
        String str2=new String("1")+new String("1");
        System.out.println(str1==str2);
    }

    public static void main3(String[] args) {
        String str1="hello";
        String str2="he"+"llo";
        String str3="he";
        String str4=str3+"llo";
        System.out.println(str1==str4);
    }
    public static void main2(String[] args) {
        String str1="hello";
        String str2=new String("hello");
        System.out.println(str1==str2);
    }
    public static void func(String s,char[]array){
        s="lz";
        array[0]='p';
    }
    public static void main1(String[] args) {
        String str="abcdef";
        char[]chars={'b','i','t'};
        func(str,chars);
        System.out.println(str);
        System.out.println(Arrays.toString(chars));
    }
}





































